home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 May / maximum-cd-2009-05.iso / DiscContents / Firefox Setup 3.0.6.exe / nonlocalized / chrome / browser.jar / content / browser / web-panels.xul < prev   
Encoding:
Extensible Markup Language  |  2007-12-23  |  14.4 KB  |  306 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?> 
  5. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  6. <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
  7.  
  8. <!DOCTYPE page [
  9. <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd">
  10. %browserDTD;
  11. <!ENTITY % textcontextDTD SYSTEM "chrome://global/locale/textcontext.dtd">
  12. %textcontextDTD;
  13. <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  14. %globalDTD;
  15. ]>
  16.  
  17. <page id="webpanels-window"
  18.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  19.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  20.         onload="load()" onunload="unload()">
  21.   <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
  22.   <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  23.   <script type="application/x-javascript" src="chrome://global/content/inlineSpellCheckUI.js"/>
  24.   <script type="application/x-javascript" src="chrome://browser/content/nsContextMenu.js"/>
  25.   <script type="application/x-javascript" src="chrome://browser/content/web-panels.js"/>
  26.  
  27.   <stringbundleset id="stringbundleset"> 
  28.     <stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
  29.   </stringbundleset>
  30.  
  31.   <broadcasterset id="mainBroadcasterSet">
  32.     <broadcaster id="isFrameImage"/>
  33.   </broadcasterset>
  34.  
  35.   <commandset id="mainCommandset">
  36.     <command id="Browser:Back"
  37.              oncommand="getPanelBrowser().webNavigation.goBack();"
  38.              disabled="true"/>
  39.     <command id="Browser:Forward"
  40.              oncommand="getPanelBrowser().webNavigation.goForward();"
  41.              disabled="true"/>
  42.     <command id="Browser:Stop" oncommand="PanelBrowserStop();"/>
  43.     <command id="Browser:Reload" oncommand="PanelBrowserReload();"/>
  44.   </commandset>
  45.  
  46.   <popupset id="mainPopupSet">
  47.     <popup id="contentAreaContextMenu"
  48.            onpopupshowing="if (event.target != this)
  49.                              return true;
  50.                            gContextMenu = new nsContextMenu(this, getPanelBrowser());
  51.                            return gContextMenu.shouldDisplay;"
  52.            onpopuphiding="if (event.target == this)
  53.                             gContextMenu = null;">
  54.  
  55.       <menuitem id="spell-no-suggestions"
  56.                 disabled="true"
  57.                 label="&spellNoSuggestions.label;"/>
  58.       <menuitem id="spell-add-to-dictionary"
  59.                 label="&spellAddToDictionary.label;"
  60.                 accesskey="&spellAddToDictionary.accesskey;"
  61.                 oncommand="InlineSpellCheckerUI.addToDictionary();"/>
  62.       <menuseparator id="spell-suggestions-separator"/>
  63.       <menuitem id="context-openlink"
  64.                 label="&openLinkCmd.label;"
  65.                 accesskey="&openLinkCmd.accesskey;"
  66.                 oncommand="gContextMenu.openLink();"/>
  67.       <menuitem id="context-openlinkintab"
  68.                 label="&openLinkCmdInTab.label;"
  69.                 accesskey="&openLinkCmdInTab.accesskey;"
  70.                 oncommand="gContextMenu.openLinkInTab();"/>
  71.       <menuseparator id="context-sep-open"/>
  72.       <menuitem id="context-bookmarklink"
  73.                 label="&bookmarkThisLinkCmd.label;"
  74.                 accesskey="&bookmarkThisLinkCmd.accesskey;"
  75.                 oncommand="gContextMenu.bookmarkLink();"/>
  76.       <menuitem id="context-savelink"
  77.                 label="&saveLinkCmd.label;"
  78.                 accesskey="&saveLinkCmd.accesskey;"
  79.                 oncommand="gContextMenu.saveLink();"/>
  80.       <menuitem id="context-sendlink"
  81.                 label="&sendLinkCmd.label;"
  82.                 accesskey="&sendLinkCmd.accesskey;"
  83.                 oncommand="gContextMenu.sendLink();"/>
  84.       <menuitem id="context-copyemail"
  85.                 label="©EmailCmd.label;"
  86.                 accesskey="©EmailCmd.accesskey;"
  87.                 oncommand="gContextMenu.copyEmail();"/>
  88.       <menuitem id="context-copylink"
  89.                 label="©LinkCmd.label;"
  90.                 accesskey="©LinkCmd.accesskey;"
  91.                 oncommand="goDoCommand('cmd_copyLink');"/>
  92.       <menuseparator id="context-sep-copylink"/>
  93.       <menuitem id="context-showimage"
  94.                 label="&showImageCmd.label;"
  95.                 accesskey="&showImageCmd.accesskey;"
  96.                 oncommand="gContextMenu.showImage();"/>
  97.       <menuitem id="context-viewimage"
  98.                 label="&viewImageCmd.label;"
  99.                 accesskey="&viewImageCmd.accesskey;"
  100.                 oncommand="gContextMenu.viewImage(event);"
  101.                 onclick="checkForMiddleClick(this, event);"/>
  102.       <menuitem id="context-copyimage-contents"
  103.                 label="©ImageContentsCmd.label;"
  104.                 accesskey="©ImageContentsCmd.accesskey;"
  105.                 oncommand="goDoCommand('cmd_copyImageContents');"/>
  106.       <menuitem id="context-copyimage"
  107.                 label="©ImageCmd.label;"
  108.                 accesskey="©ImageCmd.accesskey;"
  109.                 oncommand="goDoCommand('cmd_copyImageLocation');"/>
  110.       <menuseparator id="context-sep-copyimage"/>
  111.       <menuitem id="context-saveimage"
  112.                 label="&saveImageCmd.label;"
  113.                 accesskey="&saveImageCmd.accesskey;"
  114.                 oncommand="gContextMenu.saveImage();"/>
  115.       <menuitem id="context-sendimage"  
  116.                 label="&sendImageCmd.label;" 
  117.                 accesskey="&sendImageCmd.accesskey;" 
  118.                 oncommand="gContextMenu.sendImage();"/>
  119.       <menuitem id="context-setDesktopBackground"
  120.                 label="&setDesktopBackgroundCmd.label;"
  121.                 accesskey="&setDesktopBackgroundCmd.accesskey;"
  122.                 oncommand="gContextMenu.setDesktopBackground();"/>
  123.       <menuitem id="context-blockimage"
  124.                 type="checkbox"
  125.                 accesskey="&blockImageCmd.accesskey;"
  126.                 oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') == 'true');"/>
  127.       <menuitem id="context-back"
  128.                 label="&backCmd.label;"
  129.                 accesskey="&backCmd.accesskey;"
  130.                 chromedir="&locale.dir;"
  131.                 command="Browser:Back"/>
  132.       <menuitem id="context-forward"
  133.                 label="&forwardCmd.label;"
  134.                 accesskey="&forwardCmd.accesskey;"
  135.                 chromedir="&locale.dir;"
  136.                 command="Browser:Forward"/>
  137.       <menuitem id="context-reload"
  138.                 label="&reloadCmd.label;"
  139.                 accesskey="&reloadCmd.accesskey;"
  140.                 command="Browser:Reload"/>
  141.       <menuitem id="context-stop"
  142.                 label="&stopCmd.label;"
  143.                 accesskey="&stopCmd.accesskey;"
  144.                 command="Browser:Stop"/>
  145.       <menuseparator id="context-sep-stop"/>
  146.       <menuitem id="context-bookmarkpage"
  147.                 label="&bookmarkPageCmd2.label;"
  148.                 accesskey="&bookmarkPageCmd2.accesskey;"
  149.                 oncommand="gContextMenu.bookmarkThisPage();"/>
  150.       <menuitem id="context-savepage"
  151.                 label="&savePageCmd.label;"
  152.                 accesskey="&savePageCmd.accesskey2;"
  153.                 oncommand="gContextMenu.savePageAs();"/>
  154.       <menuitem id="context-sendpage"  
  155.                 label="&sendPageCmd.label;" 
  156.                 accesskey="&sendPageCmd.accesskey;" 
  157.                 oncommand="gContextMenu.sendPage();"/>
  158.       <menuseparator id="context-sep-viewbgimage"/>  
  159.       <menuitem id="context-viewbgimage"
  160.                 label="&viewBGImageCmd.label;"
  161.                 accesskey="&viewBGImageCmd.accesskey;"
  162.                 oncommand="gContextMenu.viewBGImage(event);"
  163.                 onclick="checkForMiddleClick(this, event);"/>
  164.       <menuitem id="context-undo"
  165.                 label="&undoCmd.label;"
  166.                 accesskey="&undoCmd.accesskey;"
  167.                 command="cmd_undo"/>
  168.       <menuseparator id="context-sep-undo"/>
  169.       <menuitem id="context-cut"
  170.                 label="&cutCmd.label;"
  171.                 accesskey="&cutCmd.accesskey;"
  172.                 command="cmd_cut"/>
  173.       <menuitem id="context-copy"
  174.                 label="©Cmd.label;"
  175.                 accesskey="©Cmd.accesskey;"
  176.                 command="cmd_copy"/>
  177.       <menuitem id="context-paste"
  178.                 label="&pasteCmd.label;"
  179.                 accesskey="&pasteCmd.accesskey;"
  180.                 command="cmd_paste"/>
  181.       <menuitem id="context-delete"
  182.                 label="&deleteCmd.label;"
  183.                 accesskey="&deleteCmd.accesskey;"
  184.                 command="cmd_delete"/>
  185.       <menuseparator id="context-sep-paste"/>
  186.       <menuitem id="context-selectall"
  187.                 label="&selectAllCmd.label;"
  188.                 accesskey="&selectAllCmd.accesskey;"
  189.                 command="cmd_selectAll"/>      
  190.       <menuseparator id="context-sep-selectall"/>
  191.       <menuitem id="context-keywordfield"
  192.                 label="&keywordfield.label;"
  193.                 accesskey="&keywordfield.accesskey;"
  194.                 oncommand="AddKeywordForSearchField();"/>
  195.       <menuitem id="context-searchselect"
  196.                 accesskey="&search.accesskey;"
  197.                 oncommand="BrowserSearch.loadSearch(getBrowserSelection(), true);"/>
  198.       <menuseparator id="frame-sep"/>
  199.       <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
  200.         <menupopup>
  201.           <menuitem id="context-showonlythisframe"
  202.                     label="&showOnlyThisFrameCmd.label;"
  203.                     accesskey="&showOnlyThisFrameCmd.accesskey;"
  204.                     oncommand="gContextMenu.showOnlyThisFrame();"/>
  205.           <menuitem id="context-openframe"
  206.                     label="&openFrameCmd.label;"
  207.                     accesskey="&openFrameCmd.accesskey;"
  208.                     oncommand="gContextMenu.openFrame();"/>
  209.           <menuitem id="context-openframeintab"
  210.                     label="&openFrameCmdInTab.label;"
  211.                     accesskey="&openFrameCmdInTab.accesskey;"
  212.                     oncommand="gContextMenu.openFrameInTab();"/>
  213.           <menuseparator/>
  214.           <menuitem id="context-reloadframe"
  215.                     label="&reloadFrameCmd.label;"
  216.                     accesskey="&reloadFrameCmd.accesskey;"
  217.                     oncommand="gContextMenu.reloadFrame();"/>
  218.           <menuseparator/>
  219.           <menuitem id="context-bookmarkframe"
  220.                     label="&bookmarkThisFrameCmd.label;"
  221.                     accesskey="&bookmarkThisFrameCmd.accesskey;"
  222.                     oncommand="gContextMenu.addBookmarkForFrame();"/>
  223.           <menuitem id="context-saveframe"
  224.                     label="&saveFrameCmd.label;"
  225.                     accesskey="&saveFrameCmd.accesskey;"
  226.                     oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
  227.           <menuseparator/>
  228.           <menuitem id="context-printframe"
  229.                     label="&printFrameCmd.label;"
  230.                     accesskey="&printFrameCmd.accesskey;"
  231.                     oncommand="gContextMenu.printFrame();"/>
  232.           <menuseparator/>
  233.           <menuitem id="context-viewframesource"
  234.                     label="&viewFrameSourceCmd.label;"
  235.                     accesskey="&viewFrameSourceCmd.accesskey;"
  236.                     oncommand="gContextMenu.viewFrameSource();"
  237.                     observes="isFrameImage"/>
  238.           <menuitem id="context-viewframeinfo"
  239.                     label="&viewFrameInfoCmd.label;"
  240.                     accesskey="&viewFrameInfoCmd.accesskey;"
  241.                     oncommand="gContextMenu.viewFrameInfo();"/>
  242.         </menupopup>
  243.       </menu>
  244.       <menuseparator id="context-sep-properties"/>
  245.       <menuitem id="context-viewpartialsource-selection"
  246.                 label="&viewPartialSourceForSelectionCmd.label;"
  247.                 accesskey="&viewPartialSourceCmd.accesskey;"
  248.                 oncommand="gContextMenu.viewPartialSource('selection');"
  249.                 observes="isImage"/>
  250.       <menuitem id="context-viewpartialsource-mathml"
  251.                 label="&viewPartialSourceForMathMLCmd.label;"
  252.                 accesskey="&viewPartialSourceCmd.accesskey;"
  253.                 oncommand="gContextMenu.viewPartialSource('mathml');"
  254.                 observes="isImage"/>
  255.       <menuitem id="context-viewsource"
  256.                 label="&viewPageSourceCmd.label;"
  257.                 accesskey="&viewPageSourceCmd.accesskey;"
  258.                 oncommand="BrowserViewSourceOfDocument(gContextMenu.browser.contentDocument);"
  259.                 observes="isImage"/>
  260.       <menuitem id="context-viewinfo"
  261.                 label="&viewPageInfoCmd.label;"
  262.                 accesskey="&viewPageInfoCmd.accesskey;"
  263.                 oncommand="gContextMenu.viewInfo();"/>
  264.       <menuitem id="context-metadata"
  265.                 label="&metadataCmd.label;"
  266.                 accesskey="&metadataCmd.accesskey;"
  267.                 oncommand="gContextMenu.showMetadata();"/>
  268.       <menuseparator id="spell-separator"/>
  269.       <menuitem id="spell-check-enabled"
  270.                 label="&spellCheckEnable.label;"
  271.                 type="checkbox"
  272.                 accesskey="&spellCheckEnable.accesskey;"
  273.                 oncommand="InlineSpellCheckerUI.toggleEnabled();"/>
  274.       <menuitem id="spell-add-dictionaries-main"
  275.                 label="&spellAddDictionaries.label;"
  276.                 accesskey="&spellAddDictionaries.accesskey;"
  277.                 oncommand="gContextMenu.addDictionaries();"/>
  278.       <menu id="spell-dictionaries"
  279.             label="&spellDictionaries.label;"
  280.             accesskey="&spellDictionaries.accesskey;">
  281.           <menupopup id="spell-dictionaries-menu">
  282.               <menuseparator id="spell-language-separator"/>
  283.               <menuitem id="spell-add-dictionaries"
  284.                         label="&spellAddDictionaries.label;"
  285.                         accesskey="&spellAddDictionaries.accesskey;"
  286.                         oncommand="gContextMenu.addDictionaries();"/>
  287.           </menupopup>
  288.       </menu>
  289.       <menuseparator hidden="true" id="context-sep-bidi"/>
  290.       <menuitem hidden="true" id="context-bidi-text-direction-toggle"
  291.                 label="&bidiSwitchTextDirectionItem.label;"
  292.                 accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  293.                 command="cmd_switchTextDirection"/>
  294.       <menuitem hidden="true" id="context-bidi-page-direction-toggle"
  295.                 label="&bidiSwitchPageDirectionItem.label;"
  296.                 accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  297.                 oncommand="gContextMenu.switchPageDirection();"/>
  298.     </popup>
  299.   </popupset>
  300.  
  301.   <commandset id="editMenuCommands"/> 
  302.   <browser id="web-panels-browser" persist="cachedurl" type="content" flex="1"
  303.            context="contentAreaContextMenu"
  304.            onclick="return window.parent.contentAreaClick(event, true);"/>
  305. </page>
  306.